﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

using System.Data.SqlClient;

namespace BLL
{
   public class RailWayBll
    {
       RailWayDal dal = new RailWayDal();
       /// <summary>
       /// 子级节点
       /// </summary>
       /// <param name="paramters"></param>
       /// <returns></returns>
       public List<RailWay> Shows(params SqlParameter[] paramters)
       {
           return dal.Show(paramters);
       }

       /// <summary>
       ///  反填
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public RailWay Back(int id)
       {
           return dal.Back(id);
       }
       public List<RailWay> ShowRw()
       {
           return dal.Show();
       }

       /// <summary>
       /// 添加车厢节点
       /// </summary>
       /// <param name="rw"></param>
       /// <returns></returns>
       public bool AddRailWay(RailWay rw)
       {
           return dal.Add(rw);
       }
    }
}
